package com.xdf.whiteaccount.dao;

import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;

import com.xdf.whiteaccount.entity.ProducePlan;
import com.xdf.whiteaccount.utils.Example;
import org.apache.ibatis.annotations.Param;

/**
 * @Description : 由代码生成器生成
 * @Author : chanchaw
 * @Date :  2025-3-4 10:56:34
 */
@Repository
public interface ProducePlanMapper {
    int insert(ProducePlan record);

    int insertSelective(ProducePlan record);

    int multiInsert(List<ProducePlan> list);

    int updateByPrimaryKey(ProducePlan record);

    int updateByPrimaryKeySelective(ProducePlan record);

    // 根据主键删除
    int deleteByPrimaryKey(Integer id);
    // 根据主键查询
    ProducePlan selectByPrimaryKey(Integer id);

    List<ProducePlan> selectAll();

    int save(ProducePlan record);
    int multiSave(List<ProducePlan> list);

    //================= 下面是 Example 代码 ==================
    List<ProducePlan> selectByExample(@Param("example") Example example);
    int updateByExampleSelective(@Param("record") ProducePlan record,@Param("example") Example example);
    int insertByExampleSelective(@Param("record") ProducePlan record,@Param("example") Example example);
    int deleteByExample(@Param("example") Example example);

    ProducePlan getNext(Integer id);
    ProducePlan getPrev(Integer id);
    ProducePlan getFirst();
    ProducePlan getLast();

    //=================以上是自动生成的代码，自定义代码请写在下面==================

    void auditAll();

    //获取创建时间最大的单据
    ProducePlan selectByCreateTime();

    ProducePlan selectMax();

    List<Map<String, Object>> selectByKCMX(Integer id);

    List<ProducePlan> selectbyBillCode(String billCode);
}